package opengl.platform.ohos;

import java.nio.ByteBuffer;

public class ETC1 {
    public static final int DECODED_BLOCK_SIZE = 48;
    public static final int ENCODED_BLOCK_SIZE = 8;
    public static final int ETC1_RGB8_OES = 36196;
    public static final int ETC_PKM_HEADER_SIZE = 16;

    public static int getEncodedDataSize(int width, int height) {
        return ohos.agp.render.opengl.ETC1.etc1GetEncodedDataSize(width, height);
    }

    public static void encodeImage(ByteBuffer uncompressedBuffer, int width, int height, int i, int i1, ByteBuffer compressedBuffer) {
        throw new RuntimeException("call not implemented method");
    }

    public static boolean isValid(ByteBuffer headerBuffer) {
        return ohos.agp.render.opengl.ETC1.isValid(headerBuffer);
    }

    public static int getWidth(ByteBuffer headerBuffer) {
        return ohos.agp.render.opengl.ETC1.etc1PkmGetWidth(headerBuffer);
    }

    public static int getHeight(ByteBuffer headerBuffer) {
        return ohos.agp.render.opengl.ETC1.etc1PkmGetHeight(headerBuffer);
    }
}
